package cn.bgs.controller;

import cn.bgs.page.PageRequest;
import cn.bgs.pojo.VisitorsRecord;
import cn.bgs.service.VisitorService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Visitor")
public class VisitorController {
    @Autowired
    private VisitorService visitorService;
    @GetMapping("/visitorSelect")
    public PageInfo<VisitorsRecord> activitySelect(PageRequest pageRequest,String visitorsName){
        PageInfo<VisitorsRecord> allUser = visitorService.activitySelect(pageRequest,visitorsName);
        return allUser;
    }

}
